//
//  IM_FileGroupModel.m
//  NewBleDemo
//
//  Created by cjg on 2019/9/17.
//  Copyright © 2019 cjg. All rights reserved.
//

#import "IM_FileGroupModel.h"

@implementation IM_FileGroupModel

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:_path forKey:@"path"];
    [aCoder encodeInt:_fileCount forKey:@"fileCount"];
    [aCoder encodeInt:_pathLength forKey:@"pathLength"];
    [aCoder encodeObject:_fileList forKey:@"fileList"];
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    if ([self init]) {
        self.path = [aDecoder decodeObjectForKey:@"path"];
        self.fileCount = [aDecoder decodeIntForKey:@"fileCount"];
        self.pathLength = [aDecoder decodeIntForKey:@"pathLength"];
        self.fileList = [aDecoder decodeObjectForKey:@"fileList"];
    }
    return self;
}

@end
